home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 2 / Gold Medal Software Volume 2 (Gold Medal) (1994).iso / windows / comms / recomm10.arj / DLLINIT.C < prev    next >
C/C++ Source or Header  |  1993-10-12  |  534b  |  37 lines

  1. #include "winvir.h"
  2.  
  3. HANDLE hLibrary;  
  4.  
  5.  
  6. int initDll();
  7. void exitDll();
  8.  
  9. int FAR PASCAL LibMain(HINSTANCE hInst, WORD wDataSeg, WORD cbHeap,
  10. LPSTR lpszCmdLine )
  11. {
  12.     hLibrary = hInst;
  13.     
  14.     //     vironal(hLibrary); // Bibliothek auf Codeveränderungen überprüfen
  15.     
  16.     initDll();
  17.     
  18.     if(cbHeap >0)
  19.     {    UnlockData(wDataSeg);
  20.     }
  21.     return 1;
  22. }
  23. int PASCAL FAR WEP( int nParam )
  24. {
  25.     int     nRVal;
  26.     
  27.     switch( nParam )
  28.     {
  29.     case WEP_SYSTEM_EXIT:
  30.     case WEP_FREE_DLL:
  31.     default:
  32.         nRVal = 1;
  33.         exitDll();
  34.     }
  35.     return nRVal;
  36. }
  37.